package com.glink.manage.vo.person;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.glink.common.serializer.JsonDate3DeSerializer;
import com.glink.common.serializer.JsonDate3Serializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.compress.utils.Lists;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
* @author  qiushaoshan
* @since 2025-01-13
*/
@ApiModel(value="PersonPageVO对象", description="人员管理-基础信息")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PersonPageVO implements Serializable {

    private static final long serialVersionUID = -1771466246009069494L;

    @ApiModelProperty(value = "主键")
    private String objId;

    @ApiModelProperty(value = "用户身份证号")
    private String card;

    @ApiModelProperty(value = "姓名")
    private String name;
    
    @ApiModelProperty(value = "所属参建单位名称")
    private String orgName;
    
    @ApiModelProperty(value = "用户性别")
    private String sex;

    @ApiModelProperty(value = "用户生日")
    @JsonSerialize(using = JsonDate3Serializer.class)
    @JsonDeserialize(using = JsonDate3DeSerializer.class)
    private Date birth;

    @ApiModelProperty(value = "人员类型")
    private String type;

    @ApiModelProperty(value = "人脸照片")
    private String profilePicture;

    @ApiModelProperty(value = "是否黑名单；0否，1是")
    private String ifBlacklist;
    
    @ApiModelProperty(value = "资质证书")
    private List<String> certTypeList;
    
    @ApiModelProperty(value = "是否存在头像")
    private String ifExistProfilePicture;

    @ApiModelProperty(value = "加黑名单原因")
    private String reason;

    @ApiModelProperty(value = "单位ID")
    private String orgId;

    @ApiModelProperty(value = "已经准入的再建工程")
    private List<String> workNameList = Lists.newArrayList();
}
